<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            float:left;
            /* background-color: pink; */
            /* 相对定位 */
        }
        .box1{
            background-color: pink;
            /* position: relative;
            top: 50px; */
        }
        .box2{  
            background-color: skyblue;
            /* position: relative;
            top: 100px; */
        }
        .box3{
            background-color: yellow;
            /* position: relative;
            top: 150px; */
        }
        ul li{
            float:left;
            margin:0 40px;
        }

    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <ul>
        <li><a href="#">导航1</a></li>
        <li><a href="#">导航2</a></li>
        <li><a href="#">导航3</a></li>
        <li><a href="#">导航4</a></li>
    </ul>


    
</body>
</html>